﻿using Infrastructure.Events;
using Ninject.Modules;
using SocialFront.Core.Events;

namespace SocialFront.Core.NinjectModules
{
    public class EventsModule : NinjectModule
    {
        public override void Load()
        {
            Bind<IDomainEventHandler<DemoFiredEvent>>().To<DemoEvent1Handler>().InSingletonScope();
            Bind<IDomainEventHandler<DemoFiredEvent>>().To<DemoEvent2Handler>().InSingletonScope();
            Bind<IDomainEventHandler<DemoFiredEvent>>().To<DemoEvent3Handler>().InSingletonScope(); 
        }
    }
}